package com.example.reschain.demo01.controller;

import com.example.reschain.demo01.entity.Order;
import com.example.reschain.demo01.service.OrderHandler;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author renyitong
 * @version 1.0.0
 * @createTime 2023年07月28日
 * @Description
 */
@RestController
public class OrderController {

    @Resource(name = "checkOrderHandler")
    private OrderHandler orderHandler;


    @GetMapping("/test")
    public String test(){
        Order order = new Order(10010L, 156356665L, 186565L, "可口可乐", "https://t15.baidu.com/it/u=2728659692", 500,9988);
        orderHandler.handler(order);
        return "success";
    }

}
